package com.wwwarehouse.taskcenter.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by clannad.shao on 2017/11/24.
 * Description:
 */

public class ChooseOwnerResponseBean {


    /**
     * total : 3
     * size : 10
     * page : 1
     * list : [{"area":"","businessLicense":"","latitudeLongitude":"","businessUnitIcon":"","businessUnitName":"10002112","mobilePhone":"","province":"","city":"","street":"","detailedAddress":"","businessUnitId":10002112},{"area":"","businessLicense":"","latitudeLongitude":"","businessUnitIcon":"","businessUnitName":"Beff","mobilePhone":"","province":"","city":"","street":"","detailedAddress":"","businessUnitId":11781235}]
     */

    private int total;
    private int size;
    private int page;
    private ArrayList<ListBean> list;

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public ArrayList<ListBean> getList() {
        return list;
    }

    public void setList(ArrayList<ListBean> list) {
        this.list = list;
    }

    public static class ListBean implements Parcelable{
        /**
         * area :
         * businessLicense :
         * latitudeLongitude :
         * businessUnitIcon :
         * businessUnitName : 10002112
         * mobilePhone :
         * province :
         * city :
         * street :
         * detailedAddress :
         * businessUnitId : 10002112
         */

        private String area;
        private String businessLicense;
        private String latitudeLongitude;
        private String businessUnitIcon;
        private String businessUnitName;
        private String mobilePhone;
        private String province;
        private String city;
        private String street;
        private String detailedAddress;
        private String businessUnitId;

        public ListBean() {
        }

        protected ListBean(Parcel in) {
            area = in.readString();
            businessLicense = in.readString();
            latitudeLongitude = in.readString();
            businessUnitIcon = in.readString();
            businessUnitName = in.readString();
            mobilePhone = in.readString();
            province = in.readString();
            city = in.readString();
            street = in.readString();
            detailedAddress = in.readString();
            businessUnitId = in.readString();
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(area);
            dest.writeString(businessLicense);
            dest.writeString(latitudeLongitude);
            dest.writeString(businessUnitIcon);
            dest.writeString(businessUnitName);
            dest.writeString(mobilePhone);
            dest.writeString(province);
            dest.writeString(city);
            dest.writeString(street);
            dest.writeString(detailedAddress);
            dest.writeString(businessUnitId);
        }

        @Override
        public int describeContents() {
            return 0;
        }

        public static final Creator<ListBean> CREATOR = new Creator<ListBean>() {
            @Override
            public ListBean createFromParcel(Parcel in) {
                return new ListBean(in);
            }

            @Override
            public ListBean[] newArray(int size) {
                return new ListBean[size];
            }
        };

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getBusinessLicense() {
            return businessLicense;
        }

        public void setBusinessLicense(String businessLicense) {
            this.businessLicense = businessLicense;
        }

        public String getLatitudeLongitude() {
            return latitudeLongitude;
        }

        public void setLatitudeLongitude(String latitudeLongitude) {
            this.latitudeLongitude = latitudeLongitude;
        }

        public String getBusinessUnitIcon() {
            return businessUnitIcon;
        }

        public void setBusinessUnitIcon(String businessUnitIcon) {
            this.businessUnitIcon = businessUnitIcon;
        }

        public String getBusinessUnitName() {
            return businessUnitName;
        }

        public void setBusinessUnitName(String businessUnitName) {
            this.businessUnitName = businessUnitName;
        }

        public String getMobilePhone() {
            return mobilePhone;
        }

        public void setMobilePhone(String mobilePhone) {
            this.mobilePhone = mobilePhone;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getStreet() {
            return street;
        }

        public void setStreet(String street) {
            this.street = street;
        }

        public String getDetailedAddress() {
            return detailedAddress;
        }

        public void setDetailedAddress(String detailedAddress) {
            this.detailedAddress = detailedAddress;
        }

        public String getBusinessUnitId() {
            return businessUnitId;
        }

        public void setBusinessUnitId(String businessUnitId) {
            this.businessUnitId = businessUnitId;
        }
    }
}
